package com.example.a14110100420.yuejian.Service;

import com.example.a14110100420.yuejian.JaveBean.User;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

/**
 * Created by Lee1 on 2017/9/27.
 */

public interface UserService {
    //登陆
    @GET("login")
    Call<User> getLogin(
            @Query("tel") String tel,
            @Query("password") String pwd);
    @GET("userRegister.do ")
    Call<User> register(
            @Query("user_name") String user,
            @Query("userpass") String password,
            @Query("userpass") String password2,
            @Query("tel") String tele,
            @Query("email") String aemail);
    @GET("getUserById.do   ")
    Call<User> getUserById(
            @Query("id") int user_id

    );
    @GET("updateUserById.do  ")
    Call<User> updateUserById(
            @Query("id") int user_id,
            @Query("user_name") String username,
            @Query("userpass") String password,
            @Query("tel") String telephonenumber,
            @Query("email") String aemail);
}


